Wdr\App\Helpers\Woocommerce D

Total Complexity 358
Dependencies 5
Dependents 14
Total lines 1,782
Lines of code 1,023
Logical lines of code 548
Comment lines 531
Methods 109
Properties 5

Methods 109

Method Rating Maintainability Complexity Lines of code
getAllAvailableAttributeDetails()
A
50 12 26
getBillingEmailFromPost()
A
54 9 21
getCartSubtotal()
A
53 8 23
removeSpecificNoticeFromSession()
A
55 8 20
getCart()
A
56 8 18
addCartFee()
S
55 6 20
isProductInSale()
S
60 6 13
getOrderItemsQty()
S
54 5 22
getProductsBySku()
S
58 5 17
getProductId()
S
59 5 16
availableProductVariations()
S
59 5 14
getProductIdFromCartItem()
S
61 5 12
getCartLineItemSubtotal()
S
61 5 11
getTitleOfProduct()
S
54 4 20
setSession()
S
65 5 9
remove_cart_item()
S
63 5 10
set_quantity()
S
63 5 10
add_to_cart()
S
63 5 10
getAppliedCoupons()
S
64 5 10
get_shipping_packages()
S
64 5 10
calculateCartTotals()
S
65 5 9
getSession()
S
64 5 10
remove_coupon()
S
63 5 10
getIncludingTaxPrice()
S
59 4 14
getExcludingTaxPrice()
S
59 4 14
getProductCategories()
S
60 4 13
getProductParentId()
S
62 4 11
getProductSalePrice()
S
63 4 11
getOrdersByConditions()
S
58 3 16
getCustomProductTaxonomies()
S
58 3 16
getShippingZipCode()
S
67 4 8
getBillingCity()
S
67 4 8
getShippingCity()
S
67 4 8
getShippingState()
S
67 4 8
getCountriesList()
S
67 4 8
getItemId()
S
64 4 10
getShippingCountry()
S
67 4 8
getStatesList()
S
67 4 8
getProductFromCartItem()
S
63 4 10
validateDynamicCoupon()
S
59 3 14
getCheckOutPostData()
S
61 3 12
checkCouponAlreadyExistsInWooCommerce()
S
62 3 11
getPriceHtml()
S
66 3 8
getCartTotalQuantities()
S
63 3 10
getRole()
S
70 3 6
isRTLEnable()
S
71 3 6
get_variation_regular_price()
S
68 3 7
getWeight()
S
67 3 8
getPaymentMethodList()
S
68 3 8
getCategorySlugByID()
S
67 3 7
variationIsVisible()
S
67 3 8
getOrderItemsId()
S
64 3 10
getOrderPostType()
S
67 3 9
productTypeIs()
S
68 3 7
getProductRegularPrice()
S
66 3 8
getProductPriceSuffix()
S
67 3 7
getProductSku()
S
69 3 7
getOrder()
S
67 3 9
getProduct()
S
64 3 9
is_ajax()
S
67 3 8
isProductHasStock()
S
70 3 6
getProductChildren()
S
69 3 7
getProductAttributes()
S
69 3 7
getProductPrice()
S
66 3 8
getProductTags()
S
69 3 7
getBannerPositionList()
S
50 1 28
productLoopStart()
S
71 2 6
getTagSlugByID()
S
66 2 8
getTermSlugByID()
S
66 2 8
getOnSaleProductsIds()
S
69 2 7
printNotice()
S
73 2 5
productLoopEnd()
S
71 2 6
setLoopProperties()
S
71 2 6
getOrderItemMeta()
S
71 2 6
getParentProduct()
S
68 2 7
removeHtmlTags()
S
67 2 8
getOrderTotal()
S
71 2 6
wc_format_decimal()
S
70 2 6
orderHasShippingMethod()
S
71 2 6
wc_get_formatted_variation()
S
68 2 7
getAttributeName()
S
71 2 6
setOrderItemMeta()
S
70 2 6
setCartProductPrice()
S
71 2 6
getOrderCurrency()
S
71 2 6
hasCouponInCart()
S
71 2 6
getUserRolesList()
S
70 2 7
addCouponDiscount()
S
71 2 6
getCouponCode()
S
71 2 6
isEnteredPriceIncludeTax()
S
69 2 7
isTaxEnabled()
S
69 2 7
getWooPluginUrl()
S
72 2 6
getCartItems()
S
68 2 7
wc_add_notice()
S
72 2 5
round()
S
68 2 7
formatStringToLower()
S
69 2 7
formatStringToUpper()
S
69 2 7
get_currency_symbol()
S
72 2 6
formatPrice()
S
71 2 6
formatPriceRange()
S
66 2 8
formatSalePrice()
S
70 2 6
getOrderStatusList()
S
72 2 6
getAttributeVariation()
S
71 2 6
getAttributeOption()
S
71 2 6
getOrderItems()
S
71 2 6
getWeekDaysList()
S
62 1 11
reCalculateCartTotal()
S
72 1 5
getUserSelectedPaymentMethod()
S
79 1 3
displayTableIfAnyOneVariantHasDiscount()
S
79 1 3
getConvertedFixedPrice()
S
79 1 3